import java.util.*;
import javax.swing.*;
import java.awt.*;
public class Calculater extends JFrame implements ActionListener {
	JTextField a;
	String preOperater="";
	double sum=0;
	public Calculater(String title) {
        super(title);
        init();
        this.setSize(400,300);
        this.setBackground(Color.BLUE);
        
		Container c=getContentPane();
		c.setLayout(new BorderLayout());
		a=new JTextField(60);
		c.add("North",a);
		String buttoned[]= {".","C","0","1","2","3","4","5","6","7","8","9","+","-","*","/","%","="};
		JPanel p=new JPanel();
		p.setLayout(new GridLayout(3,12,15,15));
		}

        private void init() {
           resultText.setEditable(false);
           resultText.setHorizontalAlignment(JTextField.RIGHT);
        }

}
